<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script>
//var now=new Date("12:10:10 4/3/2013");
//var now=new Date(2013,2,5,21,45,10)		//这种方式：月份是0-11;
//document.write(now);

//var time=new Date();
//alert(time.getDate())
//alert(time.getDay())
//alert(time.getMonth())
//alert(time.getFullYear())
//alert(time.getHours())
//alert(time.getMinutes())
//alert(time.getSeconds())
//alert(time.getMilliseconds())
//alert(time.getTime())
//alert(time.getTimezoneOffset())

var time=new Date();
	time.setFullYear(2014);
	alert(time.getFullYear())


</script>
</head>

<body>
</body>
</html>
